package com.gxp.mapper;

import java.util.List;

import com.gxp.pojo.Role;
import com.gxp.pojo.User;

public interface RoleMapper {

	public List<Role> findByUser(User user);
	
	public Role findById(int roleId);
	
	public List<Role> findAllRole(String roleType);
	
	public void delRoleAuthRelation(int roleId);
	
	public void insRoleAuthRelation(int roleId, int authId);
	
	public void delUserRole(String userId);
	
	public void insUserRole(String userId, int roleId);
	
	public List<Role> findAllRoleByUserForLogin(User user);
	
}
